package com.rainyun.rc.orm;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**class的orm相关信息*/
public class ClazzInfo {
	
	Class<?> clazz;
	String path;
	
	String primary;
	List<String> referKeys = new ArrayList<String>();
	List<String> referDataFields = new ArrayList<String>();
	Map<String,Field> fields;
	
	public ClazzInfo(Class<?> clazz, String path) {
		this.clazz = clazz;
		this.path = path;
	}
	public Class<?> getClazz() {
		return clazz;
	}
	public void setClazz(Class<?> clazz) {
		this.clazz = clazz;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getPrimary() {
		return primary;
	}
	public void setPrimary(String primary) {
		this.primary = primary;
	}
	public List<String> getReferKeys() {
		return referKeys;
	}
	public void setReferKeys(List<String> referKeys) {
		this.referKeys = referKeys;
	}
	public List<String> getReferDataFields() {
		return referDataFields;
	}
	public void setReferDataFields(List<String> referDataFields) {
		this.referDataFields = referDataFields;
	}
	public Map<String, Field> getFields() {
		return fields;
	}
	public void setFields(Map<String, Field> fields) {
		this.fields = fields;
	}
}
